const router = require('koa-router')()
const { list, createFile, downloadUrl, downloadFile } = require('../controllers/contract.js')

router.prefix('/contract')
.get('/list', list)
.post('/createFile', createFile)
.get('/download', downloadUrl)
.get('/download/:filename', downloadFile)

module.exports = router